package com.ou.csbs.capstone.views.menu;

import javax.swing.JMenu;
import javax.swing.JMenuBar;
import javax.swing.JMenuItem;
/**
 * The menu bar Swing object. This is shown at the top of the wind, and contains the Grid Line menu.
 * 
 * @author Senior Capstone
 */
public class MenuBar extends JMenuBar {
	private static final long serialVersionUID = -6189285119733548491L;
	
	private JMenu file = new JMenu("File");
	private JMenuItem quit = new JMenuItem("Quit");
	private JMenu gridlines = new JMenu("Grid Lines");
	private JMenuItem latLong = new JMenuItem("Latitude/Longitude");
	private JMenuItem utm = new JMenuItem("UTM");
	private JMenuItem eutm = new JMenuItem("Extended UTM");
	private JMenuItem off = new JMenuItem("Off");
	
	public MenuBar() {
		populate();
		this.setVisible(true);
	}
	
	public void populate() {
		this.add(file);
		file.add(quit);
		
		this.add(gridlines);
		gridlines.add(latLong);
		gridlines.add(utm);
		gridlines.add(eutm);
		gridlines.add(off);
	}

	public JMenuItem getQuit() {
		return quit;
	}

	public JMenuItem getLatLong() {
		return latLong;
	}

	public JMenuItem getUTM() {
		return utm;
	}
	
	public JMenuItem getEUTM() {
		return eutm;
	}
	
	public JMenuItem getOff() {
		return off;
	}
}
